Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: writing failed events #83

Merged
merged 3 commits into from
Dec 9, 2024
Merged

fix: writing failed events #83

merged 3 commits into from
Dec 9, 2024

Conversation

mvarendorff2
Copy link
Member

This PR fixes a bug that caused failed events to still be written to the EventRepository. The bug occurs when a commit fails and the UnitOfWork that was used in the failing commit is later re-used. This happens because the PublishedEventEnvelopes are not cleared on Return to the pool but only on a successful commit.

Copy link

codecov bot commented Dec 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.33%. Comparing base (aa50b84) to head (49fe1dc).
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #83      +/-   ##
==========================================
+ Coverage   86.30%   86.33%   +0.03%     
==========================================
  Files          83       83              
  Lines        3732     3733       +1     
  Branches      376      376              
==========================================
+ Hits         3221     3223       +2     
  Misses        418      418              
+ Partials       93       92       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mvarendorff2 mvarendorff2 force-pushed the fix/writing-failed-events branch from 7e5623e to 64e2512 Compare December 9, 2024 09:24
@mvarendorff2 mvarendorff2 force-pushed the fix/writing-failed-events branch from 64e2512 to 49fe1dc Compare December 9, 2024 09:28
@Enterprize1 Enterprize1 merged commit fbb6930 into main Dec 9, 2024
7 checks passed
@Enterprize1 Enterprize1 deleted the fix/writing-failed-events branch December 9, 2024 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants